#ifndef MYSTM_H
#define MYSTM_H

#include <QDialog>
#include <QDebug>
#include <QButtonGroup>
#include <QCoreApplication>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QString>
#include <QJsonParseError>
#include "datainfo.h"
#include <QPainter>

namespace Ui {
class MyStm;
}

class MyStm : public QDialog
{
    Q_OBJECT

public:
    explicit MyStm(QWidget *parent = 0);
    ~MyStm();

private:
    Ui::MyStm *ui;
    QButtonGroup *group;
    DataInfo *data;
    QJsonObject inparse(QByteArray);//反序列化
    void paintEvent(QPaintEvent * event);

private slots:
    void btnClickedSlot(int);
    void btnFlashSlot();
    void keyValueGetSlot(int,QString);

};

#endif // MYSTM_H
